<template>
  <div class="recommend">
    <div class="recommend_list">
      <div class="list_item" v-for="item in list" :key="item.item">
        <div class="list_item_head">
          <div class="item_img">
            <img :src="item.img_url" alt>
          </div>
          <div class="item_contemt">
            <div class="item_box">
              <h5>{{item.name}}</h5>
              <span class="level">
                <span class="star">
                  <img :src="star.star_url" v-for="star in item.stars" :key="star.id">
                  <em>{{item.star_draw}}</em>
                  <span class="level-score">分</span>
                </span>
              </span>

              <div class="item_contemt_footer">
                <span class="m_price">{{item.m_price}}元起</span>
                <span class="address">{{item.address}}</span>
                <span class="distance">{{item.distance}}km</span>
              </div>
            </div>
          </div>
        </div>
        <div class="list_item_foot">
          <div>
            <span class="iconfont ding"></span>
            <span class="introduce">{{item.introduce}}</span>
          </div>
          <div>
            <span class="iconfont tuan"></span>
            <span class="preferential">{{item.preferential}}</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "ktvRecommend",
  props: {
    list: Array
  }
};
</script>


<style scoped>
.recommend h1 {
  text-align: left;
  font-size: 0.32rem;
  margin-top: 0.2rem;
}

.list_item {
  border: 2px solid rgba(153, 151, 151, 0.356);
  margin-top: 1rem;
  width: 100%;
  overflow: hidden;
}
.item_img {
  width: 30%;
  float: left;
}
.item_img img {
  width: 100%;
}

.star img {
  width: 0.35rem;
  margin-top: 0.2rem;
}
.item_contemt {
  width: 70%;
  float: right;
  text-align: left;
}
.item_box {
  margin: 0 0.2rem;
}
.item_box h5 {
  font-size: 0.32rem;
  margin: 0;
}
.item_box p {
  margin: 0.1rem 0 0 0;
}
.item_contemt_footer {
  margin-top: 0.4rem;
}
.item_contemt_footer span {
  float: left;
  display: block;
}
.item_contemt_footer span.distance {
  float: right;
}
.item_contemt_footer span.m_price {
  font-size: 0.35rem;
  color: green;
  margin-top: -0.08rem;
  margin-right: 0.5rem;
}
.list_item_head {
  overflow: hidden;
}
.list_item_foot {
  border-top: 0.01rem solid black;
  padding-top: 0.2rem;
  padding-left: 1rem;
  margin-top: 0.2rem;
}
.list_item_foot span.ding {
  font-size: 0.4rem;
}
.ding:before {
  float: left;
  content: "订";
  display: inline-block;
  background: #f5716e;
  color: #fff;
  font-size: 0.24rem;
  padding: 0.05rem;
  border-radius: 0.02rem;
  line-height: 1;
  margin-right: 0.1rem;
}

.tuan:before {
  float: left;
  content: "团";
  display: inline-block;
  background-color: #06c1ae;
  color: #fff;
  font-size: 0.24rem;
  padding: 0.05rem;
  border-radius: 0.02rem;
  line-height: 1;
  margin-right: 0.1rem;
}
</style>
